//
//  TWBaseRequestModel.h
//  TWHomework-WeChat
//
//  Created by wzb on 2019/11/12.
//  Copyright © 2019 WZB. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef enum TWRequestModel {
    TWRequestModelGet = 0,
    TWRequestModelPost,
} TWRequestModel;

NS_ASSUME_NONNULL_BEGIN

@interface TWBaseRequestModel : NSObject

/** 请求地址 */
@property (nonatomic, copy) NSString *apiUrl;

/** 请求模式 */
@property (nonatomic, assign) TWRequestModel model;

/** Caller */
@property (nonatomic, weak) id caller;


/** 模型转字典 */
- (NSMutableDictionary *)getParameterDictionary;

+ (instancetype)newWithCaller:(id)caller;
+ (instancetype)newWithCaller:(id)caller Path:(NSString*)path;

- (instancetype)initWithCaller:(id)caller;

@end

NS_ASSUME_NONNULL_END
